package com.energyfuture.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

import com.energyfuture.common.security.annotation.EnableRyFeignClients;

/**
 * 认证授权中心
 * 
 * @author energyfuture
 */
@EnableRyFeignClients
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
public class EFAuthApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(EFAuthApplication.class, args); 
        System.out.println("( 认证授权中心启动成功! ) \n" +
                "                                    ____      __                \r\n" + 
                "  ___  ____  ___  _________ ___  __/ __/_  __/ /___  __________ \r\n" + 
                " / _ \\/ __ \\/ _ \\/ ___/ __ `/ / / / /_/ / / / __/ / / / ___/ _ \\\r\n" + 
                "/  __/ / / /  __/ /  / /_/ / /_/ / __/ /_/ / /_/ /_/ / /  /  __/\r\n" + 
                "\\___/_/ /_/\\___/_/   \\__, /\\__, /_/  \\__,_/\\__/\\__,_/_/   \\___/ \r\n" + 
                "                    /____//____/                                ");
    }
    @Bean
    public RestTemplate restTemplate(RestTemplateBuilder builder) {
       // Do any additional configuration here
       return builder.build();
    }
}
